/**
 * 统一按钮图标样式
 */
Ext.namespace("Ext.lams.buttons");
/**
 * 查询
 * @class Ext.lams.buttons.Query
 * @extends Ext.Button
 */
Ext.lams.buttons.Query = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Query.superclass.constructor.call(this,{
            text:"查询",
            width : '75',
            iconCls:"silk-zoom"
        })
    }
});
Ext.reg("btn_query",Ext.lams.buttons.Query);
/**
 * 编辑
 * @class Ext.lams.buttons.Edit
 * @extends Ext.Button
 */
Ext.lams.buttons.Edit = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Edit.superclass.constructor.call(this,{
            text:"编辑",
            width : '75',
            iconCls:"silk-user-edit"
        });
    }
});
Ext.reg("btn_edit",Ext.lams.buttons.Edit);
/**
 * 删除
 * @class Ext.lams.buttons.Delete
 * @extends Ext.Button
 */
Ext.lams.buttons.Delete = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Delete.superclass.constructor.call(this,{
            text:"删除",
            width : '75',
            iconCls:"silk-user-delete"
        })
    }
});
Ext.reg("btn_delete",Ext.lams.buttons.Delete);
/**
 * 确定
 * @class Ext.lams.buttons.Submit
 * @extends Ext.Button
 */
Ext.lams.buttons.Submit = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Submit.superclass.constructor.call(this,{
            text:"确定",
            width : '75',
            iconCls:"silk-tick"
        })
    }
});
Ext.reg("btn_submit",Ext.lams.buttons.Submit);
/**
 * 取消
 * @class Ext.lams.buttons.Cancel
 * @extends Ext.Button
 */
Ext.lams.buttons.Cancel = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Cancel.superclass.constructor.call(this,{
            text:"取消",
            width : '75',
            iconCls:"silk-cancel"
        })
    }
});
Ext.reg("btn_cancel",Ext.lams.buttons.Cancel);
/**
 * 保存
 * @class Ext.lams.buttons.Save
 * @extends Ext.Button
 */
Ext.lams.buttons.Save = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Save.superclass.constructor.call(this,{
            text:"保存",
            width : '75',
            iconCls:"silk-disk"
        })
    }
});
Ext.reg("btn_save",Ext.lams.buttons.Save);
/**
 * 添加
 * @class Ext.lams.buttons.Add
 * @extends Ext.Button
 */
Ext.lams.buttons.Add = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.Add.superclass.constructor.call(this,{
            text:"添加",
            width : '75',
            iconCls:"silk-add"
        })
    }
});
Ext.reg("btn_add",Ext.lams.buttons.Add);
/**
 * 新建
 * @class Ext.lams.buttons.New
 * @extends Ext.Button
 */
Ext.lams.buttons.New = Ext.extend(Ext.Button,{
    constructor : function(cfg){
        Ext.apply(this,cfg);
        Ext.lams.buttons.New.superclass.constructor.call(this,{
            text:"新建",
            width : '75',
            iconCls:"silk-application-add"
        })
    }
});
Ext.reg("btn_new",Ext.lams.buttons.New);